import request from '@/utils/request'

// 查询考勤白名单列表
export function listAttend_white_list(query) {
  return request({
    url: '/ehr/attend_white_list/list',
    method: 'get',
    params: query
  })
}

// 查询考勤白名单详细
export function getAttend_white_list(whiteListId) {
  return request({
    url: '/ehr/attend_white_list/' + whiteListId,
    method: 'get'
  })
}

// 新增考勤白名单
export function addAttend_white_list(data) {
  return request({
    url: '/ehr/attend_white_list',
    method: 'post',
    data: data
  })
}

// 修改考勤白名单
export function updateAttend_white_list(data) {
  return request({
    url: '/ehr/attend_white_list',
    method: 'put',
    data: data
  })
}

// 删除考勤白名单
export function delAttend_white_list(whiteListId) {
  return request({
    url: '/ehr/attend_white_list/' + whiteListId,
    method: 'delete'
  })
}
